package org.opens;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.opens.entity.EduClass;
import org.opens.service.EduClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * @Date 2021/3/3 14:45
 * @Created by 99126
 */
@RunWith(SpringRunner.class)
@SpringBootTest(classes = {MybatisCommonApplication.class})
public class OneToOne {

    @Autowired
    private EduClassService eduClassService;

    @Test
    public void test1() {
        EduClass eduClass = eduClassService.findOneToOne(1);
        System.out.println(eduClass);
    }

    @Test
    public void test2() {
        EduClass eduClass = eduClassService.findOneToMany(1);
        System.out.println(eduClass);
    }

}
